package com.zhao.common.aop;

import org.aspectj.lang.annotation.Aspect;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class SelectAspect {
	protected static Logger logger = LoggerFactory.getLogger(SelectAspect.class);

	//	@Pointcut(value = "execution(* select*(..))")
	//	public void pointcut() {
	//		System.out.println("1");
	//	}

	//	@Around(value = "execution(* select*(..))")
	//	public Object around(ProceedingJoinPoint pjp) throws Throwable {
	//		//1.记录日志
	//		//2.时间统计开始
	//		//3.安全检查
	//		Object retVal = pjp.proceed();//调用目标对象的真正方法
	//		logger.debug("执行" + pjp);
	//		//4.时间统计结束
	//		return retVal;
	//	}
}